let obj ={ //Object
    name:'cs',
    age:18,
    health:100,
    smoking: function(){
        console.log('来根华子');
        this.health--;
    },
    drink: function(){
        console.log('来杯台子');
        this.health++;
    }
}
//obj.age++
// obj.smoking();
// obj.drink();
// obj.drink();
// obj.girlfriend='小千'//直接添加属性

// let meiGirl ='mygirl'
// obj[meiGirl]='小千'
delete obj.smoking; //删除属性

console.log(obj);


let obj2 =new Object({ //Object
    name :'zw',
    age:18,
})
